import request from "@/config/utils/request";

// 到货验收新增
export function saveAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/saveAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收删除
export function removeAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/removeAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收查看
export function getAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/getAcceptanceCert",
    method: "post",
    data
  });
}

// 到货验收编辑
export function editAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/editAcceptanceCert",
    method: "post",
    data
  });
}
// 到货验收列表
export function getList(data) {
  return request({
    url: "/apis/smp/acceptancecert/listPageAcceptanceCert",
    method: "post",
    data
  });
}

// 合同选择弹框列表
export function listSmpEquipmentForCheck(data) {
  return request({
    url: "/apis/smp/smpequipment/listSmpEquipmentForCheck",
    method: "post",
    data
  });
}

// 新增时baseinfo回显
export function getSmpEquipmentConcById(data) {
  return request({
    url: "/apis/smp/smpequipment/getSmpEquipmentConcById",
    method: "post",
    data
  });
}

// 清单目录
export function getSmpPcConcMatListById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListById",
    method: "post",
    data
  });
}

// 品牌厂家接口
export function getManufacturerBrand(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpBrandRelation",
    method: "POST",
    data
  });
}

// 新增合同弹框内选择列表
export function listSmpPcConcPage(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcForCheck",
    method: "post",
    data
  });
}

// 查询用户信息
export function getUserInfo(url, data) {
  return request({
    url,
    method: "POST",
    data
  });
}

// 查询填报单位
export function getOgenName(data) {
  return request({
    url: "/apis/smp/basic/listUserPartJobComInfo",
    method: "POST",
    data
  });
}

// 新增订单弹框内选择列表
export function listPageOrder(data) {
  return request({
    url: "/apis/smp/ocorder/listOrder",
    method: "post",
    data
  });
}

// 订单详情
export function getOrder(data) {
  return request({
    url: "/apis/smp/ocorder/getOrder",
    method: "post",
    data
  });
}

// 合同查詢詳情
export function getSmpPcConcById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcById ",
    method: "post",
    data
  });
}

//验收退货列表
export function listBowOutCertPage(data) {
  return request({
    url: "/apis/smp/bowoutcert/listBowOutCertPage",
    method: "POST",
    data
  });
}
// 删除
export function removeBowOutCert(data) {
  return request({
    url: "/apis/smp/bowoutcert/removeBowOutCert",
    method: "POST",
    data
  });
}
//验收退货新增
export function saveBowOutCert(data) {
  return request({
    url: "/apis/smp/bowoutcert/saveBowOutCert",
    method: "POST",
    data
  });
}
// 验收退货编辑
export function editBowOutCert(data) {
  return request({
    url: "/apis/smp/bowoutcert/editBowOutCert",
    method: "POST",
    data
  });
}
// 验收单编号选择弹框table
export function listAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/listAcceptanceCert",
    method: "post",
    data
  });
}
// 退货验收查看
export function getDetail(data) {
  return request({
    url: "/apis/smp/bowoutcert/getBowOutCert",
    method: "POST",
    data
  });
}

// 台账列表
export function listPageAcceptanceCertParameter(data) {
  return request({
    url: "/apis/smp/acceptancecert/listPageAcceptanceCertParameter",
    method: "post",
    data
  });
}